package com.pc.common;

import com.pc.feign.StudentFeign;
import org.springframework.stereotype.Component;

@Component("studentFeign")
public class FeignFailBack implements StudentFeign {
    @Override
    public Result getStudentName() {
        return Result.error(CodeMsg.SERVICE_USE_FAIL);
    }

    @Override
    public Result getStudentById(Long id) {
        return Result.error(CodeMsg.SERVICE_USE_FAIL);
    }
}
